package com.bjsxt.livegoods.order.service.controller;

import com.bjsxt.livegoods.entity.Order;
import com.bjsxt.livegoods.order.service.service.OrderService;
import com.bjsxt.livegoods.order.serviceapi.OrderServiceAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class OrderServiceController implements OrderServiceAPI {

    @Autowired
    private OrderService orderService;
    @Override
    public List<Order> findOrders(String user) {
        return orderService.findOrders(user);
    }
}
